public class link {
    Integer value;
    link next;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public link getNext() {
        return next;
    }

    public void setNext(link next) {
        this.next = next;
    }
}
